using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TouchCloud : MonoBehaviour
{
    // Update is called once per frame
    void Update()
    {
        if(Input.GetMouseButton(0))
        {
            var worldPos = Camera.main.ScreenToWorldPoint(Input.mousePosition);

            var clouds = GameObject.FindObjectOfType<Clouds2D>();
            clouds.OpenByWorldPosFade(worldPos, 2);
        }
    }
}
